<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@include file="/common/taglibs.jsp" %>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
        <title>我的问卷</title>
        <link rel="stylesheet" href="${ctx }/css/mui.min.css"/>
     	<link rel="stylesheet" href="${ctx }/css/dw-wx-login.css"/>
   		<link rel="stylesheet" href="${ctx }/css/dw-wx-login-font.css"/>
		<script src="${ctx }/js/plugs/mui/jquery-1.8.3.min.js" type="text/javascript" ></script>
		<script src="${ctx }/js/plugs/mui/mui.min.js" type="text/javascript" ></script>
		<script>
		function addRandomUrl(url){
			//防止微信缓存
			window.location.href = url + '?t=' + new Date().getTime();
		}
		</script>
    </head>
	<body style="background: url(../images/bg.jpg);">

	<header class="mui-bar mui-bar-nav" style="padding-right: 15px;">
			<a class=" mui-icon mui-icon-contact mui-pull-right" href="${ctx }/wexin/myInfo.do"></a>
			<a class=" mui-icon mui-icon-starhalf mui-pull-right" href="${ctx }/wexin/myPrize.do"></a>
			<a class=" mui-icon mui-icon-compose mui-pull-right" href="${ctx }/wexin/mySurvey.do"></a>
			<h1 class="mui-title"></h1>
	</header>

	<div class="mui-content">
			<ul class="mui-table-view" style="margin-top: 2px">

				
			<c:forEach items="${surveyList }" var="en">
				<li class="mui-table-view-cell mui-media">
					<a href='#' onclick="addRandomUrl('${baseUrl.concat('/diaowen/').concat(en.sid).concat('.html')}')">
						
							<div>
							<table style="width:100%;height:50px;" border="0">
							<tr>
							<td rowspan="2" style="width:10%"><div class="mui-media-body"><img class="mui-media-object mui-pull-left" src="${ctx }/images/dw-wx-survey.png"></td>
							<td colspan="2" style="width:90%">${en.surveyName }</td>
							
							</tr>
							<tr>
								<!-- <td style="width:80%"><p class='mui-ellipsis'>en.createDate }</p></td> -->
								<td style="width:20%"><p class='mui-ellipsis'><c:if test="${en.answerStatus == 1}">完成</c:if><c:if test="${en.answerStatus == 0}">未完成</c:if></p></td>
								<td style="width:70%">
								<p class='mui-ellipsis  mui-pull-right'>发布时间:<fmt:formatDate value="${en.editDate }" pattern="yyyy-MM-dd" />
								</p>
								</td>
							</tr>
							</table>
						</div>
					</a>
				</li>	
			</c:forEach>
			</ul>
		</div>
	    <div class="footer">
		  Powered by ACBSP China
	    </div>
	</body>
</html>
